#pragma once


class CTextFile
{
    FILE *fp;

public:
    CTextFile();
    ~CTextFile();

    uint OpenToBinaryRead( char filename[1024]);
    uint OpenToRead( char filename[1024]);
    uint OpenToReWrite( char filename[1024]);
    uint OpenToBinaryReWrite( char filename[1024]);
    uint Close();
    char * ReadTextLine( char textline[65536] );
    size_t WriteBytes( void *ptr, uint count );
    size_t ReadBytes( void *ptr, uint count );
    size_t Test( );
    uint EndOfFile();
};

